package com.cn.bukeManage.dao;

import java.util.List;
import java.util.Map;
import com.cn.bukeManage.pojo.Customer;
import com.cn.bukeManage.pojo.Customer_address;
import com.cn.bukeManage.pojo.Dealer;
import com.cn.bukeManage.pojo.Goods;
import com.cn.bukeManage.pojo.Indent;
import com.cn.bukeManage.pojo.Orders;
import com.cn.bukeManage.pojo.page.Goods_afterSalesPage;
import com.cn.bukeManage.pojo.page.IndentPage;
import com.cn.bukeManage.pojo.page.OrdersPage;
import com.cn.bukeManage.pojo.page.Page;

public interface OrdersDao {

	List<Orders> getAllOrderByStatus(OrdersPage page);
	Integer getRowsOfAllOrderByStatus(OrdersPage page);
	Customer getCustomerByCustomerId(Integer customerId);
	Customer_address getAddressByCuAdId(Integer cuAdId);
	     
	List<Indent> getAllIndentByIndentPage(IndentPage indentPage);
	Integer getRowsOfIndentByType(Integer type);
	Dealer getDealerByDealerId(Integer dealerId);
	List<Map<String, Object>> getAllOrdersByStatus(OrdersPage page);
	List<Orders> getAllGoingOrder(OrdersPage page);
	Integer getRowsOfAllGoingOrder(OrdersPage page);
	Integer getRowsOfIndentByTypeAndStatus(IndentPage page);
	List<Map<String, Object>> getGoodsOfAfterSale(Page page);
	List<String> getPictureByAfterSalesId(Object object);
	Integer getRowsOfGoodsOfAfterSaleByNew(Integer currentPage);
	Integer getDispoiMaxByAfterSalId(Object object);
	List<Map<String, Object>> getGoodOfAccByOrderId(Integer orderId);
	Integer updateOrderStatusByOrderIdAndStatus(Map<String, Object> map);
	Indent getIndentByIndentId(Integer indentId);
	Integer updateIndentByIndentIdAndAddPrice(Indent indent);
	Integer toStopOrStartIndent(Map<String, Object> map);
	Map<String,Object> getWorkerByIndentId(Integer indentId);
	List<Indent> getAllIndentByIndentPage2(IndentPage page);
	List<Indent> getAllIndentByIndentPage3(IndentPage page);
	Integer getRowsOfIndentByTypeAndStatus2(IndentPage page);
	Integer getRowsOfIndentByTypeAndStatus3(IndentPage page);
	Integer shenHeDingDan(Map<String, Object> map);
	Map<String, Object> getOrderByOrderId(Integer orderId);
	List<Goods> getGoodsByOrderId(Integer orderId);
	Integer updateGoodsSupplyMethod(Map<String, Object> map);
	Integer getRowsOfAfterSale(Goods_afterSalesPage goodsPage);
}
